<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/html/js/axios.min.js"></script>
    <script src="/html/js/ajax.js"></script>
    <script src="/html/js/util.js"></script>
    <link rel="stylesheet" href="index.css">
    <script>
        async  function land(){
            var info = await ajaxGet("/user/login.html",{
                name:$("name").value,pwd:$("pwd").value});
            if (info == "ok"){
                location.href="/html/mune.html";
            }else {
                $("errorDiv").innerHTML="用户名或密码错误";
            }
        }
    </script>
</head>
<body>
<div id="errorDiv" style="background-color: red; font-size: 12px;"></div>
用户名：<input type="text" id="name"><br>
密  码：<input type="password" id="pwd"><br>
<input type="button" value="登录" onclick="land()">
</div>

</body>
</html>